package com.city.springcloud.service;

import com.city.springcloud.dao.DeptDao;
import com.city.springcloud.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/4/25
 * Time: 23:15
 * Description: No Description
 */
@Service
public class DeptDaoService{
    @Autowired
    private DeptDao deptDao;
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }
    public List<Dept> selectDept() {
        return deptDao.selectDept();
    }
}
